import { validateNumberFixed2, validateNumberFixed } from '/@/utils/validators';
import request from '/@/api/project/order/index';
import commonRequest from '/@/api/common/common';

export default function (data: any) {
	const array = [
		{
			type: 'select',
			label: window.$t('bai8wgKJtJcE67J1Op9H'),
			key: 'projectNo',
			value: data.projectNo,
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'input',
			label: window.$t('hpkM4DblGfRbqKg6o7Md'),
			key: 'projectName',
			value: data.projectName || '',
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'input',
			label: window.$t('mfLkhMQo3xX9EohvMzx7'),
			key: 'projectSite',
			value: data.projectSite,
			disabledStyle: true,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'input',
			label: window.$t('ztUBeI3ecoEdkV6sZck'),
			key: 'date',
			value: data.date || '',
			disabledStyle: true,
		},

		{
			type: 'select',
			label: window.$t('iNJwO2yfbWhu6WwzyfFa'),
			labelWidth: '130px',
			key: 'operationID',
			value: '',
			placeHolder: window.$t('1IdJIz8ljGphZHtaxcfJh'),
			selectOption: {
				type: 'remote',
				loading: false,
				requestMethod: commonRequest.getCheckList,
				searchKey: 'checkflowName',
				value: 'id',
				label: 'checkFuncname',
				otherParams: {
					checkFuncname: window.$t('oy1C5JHsHrEXhgRXcBmcu'),
				},
				// fill: {
				// 	OperationID: 'id',
				// },
			},
			rules: [{ required: true, message: window.$t('nAtA0A2MpXGmhpalLJwD'), trigger: ['blur', 'change'] }],
		},

		{
			type: 'upload',
			label: window.$t('vCgQwOj7bCs7SsdLEdweT'),
			key: 'filesBase64',
			value: [],
			uploadOption: {
				multiple: false,
				limit: 1,
			},
		},

		{
			type: 'slot',
			slotName: 'proProcess',
			key: 'proProcess',
			value: data.proProcess || 0,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},

		{
			type: 'slot',
			slotName: 'workHours',
			key: 'workHours',
			value: data.workHours,
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'tint1',
			label: window.$t('yvb4koXf48LxLvdgRnjq'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'theset_QU',
			key: 'theset_QU',
			value: data.theset_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('9wdp2GibRCiN6kKqEiI6o'),
			key: 'theset',
			value: data.theset || '',
			placeHolder: window.$t('pQf5V2JQlJsn44KwThwCh'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'materialComing_QU',
			key: 'materialComing_QU',
			value: data.materialComing_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('zVrYaDkBgyZPntgyobl8'),
			key: 'materialComing',
			value: data.materialComing || '',
			placeHolder: window.$t('zk0sh4Am1XtYjnoEgJfK'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'quality_QU',
			key: 'quality_QU',
			value: data.quality_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('fIegQjG1sor5yoqKdoIe'),
			key: 'quality',
			value: data.quality || '',
			placeHolder: window.$t('1nJmoHvjxnxB5UXxB9kWd'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},

		{
			type: 'slot',
			slotName: 'progressStatus_QU',
			key: 'progressStatus_QU',
			value: data.progressStatus_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('jeQqeGv01JnoVOq5e6H'),
			key: 'progressStatus',
			value: data.progressStatus || '',
			placeHolder: window.$t('iaoqbthayiXpwi57ZiyV'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'security_QU',
			key: 'security_QU',
			value: data.security_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('zu9GsWxIzzozBnIJy'),
			key: 'security',
			value: data.security || '',
			placeHolder: window.$t('feXoHalg6uhTdOOenJnjK'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'slot',
			slotName: 'customerComplaints_QU',
			key: 'customerComplaints_QU',
			value: data.customerComplaints_QU,
			size: {
				xs: 3,
				sm: 3,
				md: 3,
				lg: 3,
				xl: 3,
			},
		},
		{
			type: 'textarea',
			label: window.$t('tqFn96g8y5hsqs5YgDhJ'),
			key: 'customerComplaints',
			value: data.customerComplaints || '',
			placeHolder: window.$t('r0mv9l0tfLfMcwRUdMTn'),
			size: {
				xs: 21,
				sm: 21,
				md: 21,
				lg: 21,
				xl: 21,
			},
		},
		{
			type: 'textarea',
			label: window.$t('usCpe569KRrXl4SndjyX'),
			key: 'description',
			value: data.description || '',
			placeHolder: window.$t('ead9CeTrZn8DvPxXhvVnE'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
	];
	return array;
}
